package cn.dakaqi.entities;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by chunyang on 2016/4/18.
 * 福利
 */
@Cacheable
@Entity
@Table(name = "U_WELFARE")
public class Welfare extends IdEntity
{
    private String code;//'福利类型（0为数字类型A为非数字类型）',
    private String name;//'名称',
    private Float price;//价格
    private String specialDemo;//'特殊说明',
    private String startDay;// '开始日期、',
    private String endDay;//'结束日期',
    private String useDemo;//'使用说明',
    private int useCounts;// '已使用数量',
    private int allCounts;//'总数量',
    private Date createTime;//'添加时间',
    private String type;//'福利类别',
    private String exchangeCounts;//'每人兑换次数',
    private int hasExchanges;//累计兑换数量
    private int times;//'兑换条件公益时间',
    private int integral;//'兑换所需积分',
    private String area;//'使用地址',
    private int status;//当前状态（0未发布、1已发布、2已撤销）',
    private int delStatus;//删除状态(0未删除 1已删除)',
    private String useAndroid;//'安卓是否立即使用(0不使用1使用)',
    private String androidPackage;//'android使用地址',
    private String androidUrl;//
    private String useIos;//'苹果是否立即使用(0不使用 1使用)',
    private String iosAddres;//'ios使用地址',
    private String useWeb;//'网页是否立即使用(0不使用 1使用)',
    private String webAddress;//'网页使用地址',
    private String img;//'封面图',
    private int browses;//浏览量

    public Welfare()
    {
    }

    public Welfare(Long id)
    {
        this.id = id;
    }

    public int getHasExchanges()
    {
        return hasExchanges;
    }

    public void setHasExchanges(int hasExchanges)
    {
        this.hasExchanges = hasExchanges;
    }

    public int getBrowses()
    {
        return browses;
    }

    public void setBrowses(int browses)
    {
        this.browses = browses;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Float getPrice()
    {
        return price;
    }

    public void setPrice(Float price)
    {
        this.price = price;
    }

    public String getSpecialDemo()
    {
        return specialDemo;
    }

    public void setSpecialDemo(String specialDemo)
    {
        this.specialDemo = specialDemo;
    }

    public String getStartDay()
    {
        return startDay;
    }

    public void setStartDay(String startDay)
    {
        this.startDay = startDay;
    }

    public String getEndDay()
    {
        return endDay;
    }

    public void setEndDay(String endDay)
    {
        this.endDay = endDay;
    }

    public String getUseDemo()
    {
        return useDemo;
    }

    public void setUseDemo(String useDemo)
    {
        this.useDemo = useDemo;
    }

    public int getUseCounts()
    {
        return useCounts;
    }

    public void setUseCounts(int useCounts)
    {
        this.useCounts = useCounts;
    }

    public int getAllCounts()
    {
        return allCounts;
    }

    public void setAllCounts(int allCounts)
    {
        this.allCounts = allCounts;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getExchangeCounts()
    {
        return exchangeCounts;
    }

    public void setExchangeCounts(String exchangeCounts)
    {
        this.exchangeCounts = exchangeCounts;
    }

    public int getTimes()
    {
        return times;
    }

    public void setTimes(int times)
    {
        this.times = times;
    }

    public int getIntegral()
    {
        return integral;
    }

    public void setIntegral(int integral)
    {
        this.integral = integral;
    }

    public String getArea()
    {
        return area;
    }

    public void setArea(String area)
    {
        this.area = area;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public int getDelStatus()
    {
        return delStatus;
    }

    public void setDelStatus(int delStatus)
    {
        this.delStatus = delStatus;
    }

    public String getUseAndroid()
    {
        return useAndroid;
    }

    public void setUseAndroid(String useAndroid)
    {
        this.useAndroid = useAndroid;
    }

    public String getAndroidPackage()
    {
        return androidPackage;
    }

    public void setAndroidPackage(String androidPackage)
    {
        this.androidPackage = androidPackage;
    }

    public String getAndroidUrl()
    {
        return androidUrl;
    }

    public void setAndroidUrl(String androidUrl)
    {
        this.androidUrl = androidUrl;
    }

    public String getUseIos()
    {
        return useIos;
    }

    public void setUseIos(String useIos)
    {
        this.useIos = useIos;
    }

    public String getIosAddres()
    {
        return iosAddres;
    }

    public void setIosAddres(String iosAddres)
    {
        this.iosAddres = iosAddres;
    }

    public String getUseWeb()
    {
        return useWeb;
    }

    public void setUseWeb(String useWeb)
    {
        this.useWeb = useWeb;
    }

    public String getWebAddress()
    {
        return webAddress;
    }

    public void setWebAddress(String webAddress)
    {
        this.webAddress = webAddress;
    }

    public String getImg()
    {
        return img;
    }

    public void setImg(String img)
    {
        this.img = img;
    }
}
